import { createApp } from "vue";
import "./style.css";
import router from "./router";
import App from "./App.vue";
// 1. 引入你需要的组件
import { Button, Rate, Form, Field, CellGroup, NavBar, SubmitBar, Checkbox, CheckboxGroup, Empty, Stepper, Swipe, SwipeItem, Notify } from "vant";
// 2. 引入组件样式
import { Icon } from "vant"
import "vant/lib/index.css";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)
const app = createApp(App);

app.use(router).use(Icon).use(Button).use(Rate).use(Form).use(pinia).use(Field).use(CellGroup).use(NavBar).use(SubmitBar).use(Checkbox).use(CheckboxGroup).use(Empty).use(Stepper).use(Swipe).use(SwipeItem).use(Notify);

app.mount("#app");
